<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>ScrollBarGadget3D</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">ScrollBarGadget3D()</font></b></p>
<p><b>语法</b></p><blockquote>

Result = <font color="#006666"><b>ScrollBarGadget3D</b></font>(#Gadget3D, x, y, Width, Height, Minimum, Maximum, PageLength [, Flags])</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Creates a scrollbar gadget in the current GadgetList. It's widely used when displaying only a part of an object. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Gadget3D</i></td>
<td width="90%"> 
 
A number to identify the new 3D gadget. <a href="../reference/purebasic_objects.html">#PB_Any</a> can 
be used to auto-generate this number. 

 

</td></tr>
<tr><td><i>x, y, Width, Height</i></td>
<td> 
 
The position and dimensions of the new gadget. 

 

</td></tr>
<tr><td><i>Minimum, Maximum</i></td>
<td> 
 
The range of values that the scrollbar can take. These values should be between 0 and 10,000 to avoid 
limitations on some operating systems. 

 

</td></tr>
<tr><td><i>PageLength</i></td>
<td> 
 
The amount of values that are part of the current displayed "page". <br>
<br>
For example you can have a picture 
which is 100 pixels width and you only see 25 pixels. What you see is a called a 'page', 
in this example, the page length will be 25, the Minimum will be 0 and the Maximum will be 100. 

 

</td></tr>
<tr><td><i>Flags (optional)</i></td>
<td> 
 
It can be a combination of the following values: 
 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_ScrollBar3D_Vertical</font> : The scrollbar is vertical (instead of horizontal, which is the default).
</font></pre>

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>



Nonzero on success, zero otherwise. If <font color="#924B72">#PB_Any</font> was used as the #Gadget3D parameter 
then the return-value is the auto-generated gadget number on success. 

 

</blockquote><p><b>Remarks</b></p><blockquote>



To add a 'mini help' to this gadget, use <a href="gadgettooltip3d.html">GadgetToolTip3D()</a>. <br>
<br>
The following functions can be used to act on this gadget: <br>
<br>
- <a href="getgadgetstate3d.html">GetGadgetState3D()</a>: Returns the current slider position (value between the Minimum-Maximum range). <br>
- <a href="setgadgetstate3d.html">SetGadgetState3D()</a>: Changes the current slider position. <br>
- <a href="getgadgetattribute3d.html">GetGadgetAttribute3D()</a>: With one of the following attributes: 
 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_ScrollBar3D_Minimum</font>   : Returns the minimum scroll position.
  <font color="#924B72">#PB_ScrollBar3D_Maximum</font>   : Returns the maximum scroll position.
  <font color="#924B72">#PB_ScrollBar3D_PageLength</font>: Returns the PageLength value.
</font></pre>



- <a href="setgadgetattribute3d.html">SetGadgetAttribute3D()</a>: With one of the following attributes: 
 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_ScrollBar3D_Minimum</font>   : Changes the minimum scroll position.
  <font color="#924B72">#PB_ScrollBar3D_Maximum</font>   : Changes the maximum scroll position.
  <font color="#924B72">#PB_ScrollBar3D_PageLength</font>: Changes the PageLength value.
</font></pre>


</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=scrollareagadget3d.html>ScrollAreaGadget3D()</a> - <a href=index.html>Gadget3D Index</a> - <a href=setactivegadget3d.html>SetActiveGadget3D()</a> -&gt;



</body></html>